import Mock from 'mockjs'
export default {
  '/api/queryProductList': (req: any,res: any) => {
    const params = req.query
    const data =  Mock.mock({ total: 55,
      [`list|${params.pageSize}`]: [{
        id: '@guid',
        name: '@cname',
        'gender|1': ['male', 'female'],
        email: '@email',
        disabled: false
      }],
    status:0
   })
   res.status(200).json(data)
  },
  'POST /queryProductList': { data: [
  {name:'agan1',id:'2',key:'2'}],
  total: 100,
  status:0
 },
}